<%@page import="helpers.StringHelper"%>
<%@page import="models.Software"%>
<%@page import="java.util.ArrayList"%>
<% ArrayList<Software> softwares= (ArrayList<Software>)request.getAttribute("softwares"); %>
<?xml version="1.0" encoding="UTF-8"?>
  <rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>    
    <title><![CDATA[Top Application iTouch, iPhone and iPad]]></title>
    <link>http://www.1stapp.org</link>
    <description><![CDATA[Top best apps for iPhone, ipad in many country.]]></description>
    <dc:creator>1stapp.org</dc:creator>
    <dc:rights>Copyright 2012</dc:rights>
    <admin:generatorAgent rdf:resource="http://www.1stapp.org" />
        <%
            for(int i=0;i<softwares.size();i++)
            {
                Software software = softwares.get(i);
        %>
               <item>
                  <title><![CDATA[ <%=software.getTrackName()%> ]]></title>
                  <link>http://www.1stapp.org/i/<%=StringHelper.getAlias(software.getTrackName()) + "-" + software.getTrackId()%></link>
                  <description><![CDATA[<%=StringHelper.cutString(software.getDescription().getValue(), 22)%>]]></description>
                  <pubDate><%=software.getReleaseDate()%></pubDate>
               </item>
       <%
            }
       %>      
    </channel>
</rss> 